<?php
class StyleInterpreter{
	
	public function interpret(Node $node){
		$template = $node->getAttribute('template');
		$script = $node->getAttribute('[]');
		
		$ret = '<style ';
		if($template != ''){
			$ret .= $this->$template($node);
		}
		$ret .= '>'.$script."</style>";
		
		return $ret;
	}
	
	function css(Node $node){
		return 'type="text/css"';
	}
}